package com.hcms.common.service;

import com.hcms.common.dto.CaptchaResult;

public interface ICaptchaService {

    /**
     * 生成验证码
     *
     * @param width
     * @param height
     * @return
     */
    CaptchaResult generator(Integer width, Integer height);

    /**
     * 校验验证码
     *
     * @param codeKey
     * @param inputCode
     * @return
     */
    boolean verify(String codeKey, String inputCode);

    boolean delete(String codeKey);
}
